| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">äº§åæ¨¡å
·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMouldName" id="HMouldName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HMouldID" id="HMouldID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HMouldList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | |
| | | <label class="layui-form-label">äº§åæ¨¡å
·</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HMouldID" id="HMouldID" class="layui-input" value="0"> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¿å
»è®¡åå
ç </label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HPlanInterID" id="HPlanInterID" class="layui-input" value="0"> |
| | | <input type="text" name="HPlanInterName" id="HPlanInterName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HPlanInterID" id="HPlanInterID" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HPlanInterpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <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> |
| | | |
| | | <div class="layui-tab layui-tab-card"> |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ä¿å
»é¡¹ä¿¡æ¯</li> |
| | | <li>é
ä»¶ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> |
| | | </div> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="xuhao"> |
| | | {{d.LAY_TABLE_INDEX+1}} |
| | | </script> |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <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> |
| | | |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="xuhao"> |
| | | {{d.LAY_TABLE_INDEX+1}} |
| | | </script> |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | <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> |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | //è·å页é¢è·³è½¬åæ° |
| | | var params = get_UrlVars(); |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | } else { |
| | | var OperationType = params[params[0]];//æä½ç±»å |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | } |
| | | |
| | | |
| | | |
| | | var params = getUrlVars(); |
| | | var hID = params[params[0]];//ç¼è¾æ¥ç |
| | | |
| | | |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |
| | | |
| | | //#region å
¬ç¨åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | |
| | | , form = layui.form |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | var option; |
| | | var option2; |
| | | var option1; |
| | | var sBillType = "3807"; |
| | | var TabRow = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0 ", "HQtyMust": "0", "HManagerID": "0", "HRemark": " " }; |
| | | var TabRow1 = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0 ", "HQtyMust": "0", "HManagerID": "0", "HRemark": " " }; |
| | | //#endregion |
| | | |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | | |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HBeginDate' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HEndDate' |
| | | }); |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | //if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | // icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | // }, function () { window.location.href = "../../user/login.html"; }); |
| | | //} |
| | | var tableReload = table.reload; |
| | | var option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 500 |
| | | //,url: '/demo/table/user/' //æ°æ®æ¥å£ |
| | | , page: true //å¼å¯å页 |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HMaterID', title: 'é
件代ç ', edit: 'text', event: "" } |
| | | , { field: 'HUnitID', title: 'åä½ä»£ç ', edit: 'text', event: "" } |
| | | , { field: 'HQty', title: 'å®é
ç¨é', edit: 'text' } |
| | | , { field: 'HQtyMust', title: 'æ åç¨é', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººä»£ç ', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ "HMaterID": 0, "HUnitID": "0 ", "HQty": "0 ", "HQtyMust": "0", "HManagerID": "0", "HRemark": " " }]; |
| | | table.render(option); |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //夿æä½ç±»å |
| | | if (OperationType == 1) {//æ æºå |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | |
| | | set_EditFromGrid(); |
| | | } |
| | | else { |
| | | $("#HInterID").val(hID);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldMaintainBill/Sc_MouldMaintainBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and HInterID=" + hID }, |
| | | success: function (result) { |
| | | //console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | | } |
| | | |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | var rowid = 0; |
| | | var rows = 0; |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | // 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var rowid = 0; |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0 ", "HQtyMust": "0", "HManagerID": "0", "HRemark": " " }; |
| | | var NewRow = TabRow; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | //table.cache["mainTable"].push(AddRow[rows]); |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | rows++; |
| | | layer.msg('å¢å ä¸è¡æé®ï¼') |
| | | //æ°å¢ä¸è¡ |
| | | case 'btn-AddLine': btnAddLine(NewRow); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.alert("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | else if (data.length > 1) { |
| | | layer.alert("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //layer.alert(copyrow); |
| | | } |
| | | //å¤å¶ä¸è¡ |
| | | case 'btn-CopyLine': btnCopyLine(data); |
| | | break; |
| | | } |
| | | }); |
| | | //è¡å
äºä»¶ |
| | | |
| | | // è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | console.log("ç´¢å¼ä¸º:" + rowIndex); |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | var oldData = table.cache["mainTable"]; |
| | | oldData.splice(obj.tr.data('index'), 1); |
| | | table.reload('mainTable', { data: oldData }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | if (obj.event === 'ReasonNameEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "1": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "2": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "3": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "4": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "5": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "6": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "7": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "8": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "9": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "10": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "11": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "12": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "13": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "14": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "15": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "16": |
| | | //å¼¹åºæ¡éæ©ä¸è¯åå |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ä¸è¯åå å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_BadReasonList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HWasterReasonName: HReasonName |
| | | , HBadReasonID: ReasonID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HWasterReasonName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'EmpNameEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "1": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "2": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "3": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "4": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "5": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "6": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "7": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "8": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "9": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "10": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "11": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "12": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "13": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "14": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "15": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "16": |
| | | //å¼¹åºæ¡éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HEmpName: EmpName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HEmpName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'SQProcNameEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "1": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "2": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "3": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "4": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "5": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "6": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "7": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "8": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "9": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "10": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "11": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "12": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "13": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "14": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "15": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "16": |
| | | //å¼¹åºæ¡éæ©ç³è¯·å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç³è¯·å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HSQProcName: SQProcName |
| | | , HProcID: ProcID |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HSQProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'ZRProcNameEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "1": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "2": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "3": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "4": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "5": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "6": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "7": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "8": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "9": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "10": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "11": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "12": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "13": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "14": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "15": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "16": |
| | | //å¼¹åºæ¡éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HZRProcName: ZRProcName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HZRProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'BadQtyEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | |
| | | break; |
| | | case "1": |
| | | |
| | | break; |
| | | case "2": |
| | | |
| | | break; |
| | | case "3": |
| | | |
| | | break; |
| | | case "4": |
| | | |
| | | break; |
| | | case "5": |
| | | |
| | | break; |
| | | case "6": |
| | | |
| | | break; |
| | | case "7": |
| | | |
| | | break; |
| | | case "8": |
| | | |
| | | break; |
| | | case "9": |
| | | |
| | | break; |
| | | case "10": |
| | | |
| | | break; |
| | | case "11": |
| | | |
| | | break; |
| | | case "12": |
| | | |
| | | break; |
| | | case "13": |
| | | |
| | | break; |
| | | case "14": |
| | | |
| | | break; |
| | | case "15": |
| | | |
| | | break; |
| | | case "16": |
| | | //$(obj.tr).find(".layui-table-edit").keyup(function () { |
| | | // var $input = $(this), val = $input.val(); |
| | | // if (!val) val = "1"; |
| | | // $input.val(val.replace(/[^\d]/g, '')); |
| | | //}); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'RemarkEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | |
| | | break; |
| | | case "1": |
| | | |
| | | break; |
| | | case "2": |
| | | |
| | | break; |
| | | case "3": |
| | | |
| | | break; |
| | | case "4": |
| | | |
| | | break; |
| | | case "5": |
| | | |
| | | break; |
| | | case "6": |
| | | |
| | | break; |
| | | case "7": |
| | | |
| | | break; |
| | | case "8": |
| | | |
| | | break; |
| | | case "9": |
| | | |
| | | break; |
| | | case "10": |
| | | |
| | | break; |
| | | case "11": |
| | | |
| | | break; |
| | | case "12": |
| | | |
| | | break; |
| | | case "13": |
| | | |
| | | break; |
| | | case "14": |
| | | |
| | | break; |
| | | case "15": |
| | | |
| | | break; |
| | | case "16": |
| | | |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'PSProcNameEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "1": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "2": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "3": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "4": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "5": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "6": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "7": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "8": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "9": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "10": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "11": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "12": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "13": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "14": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "15": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | case "16": |
| | | //å¼¹åºæ¡éæ©ä¸è¯ç¡®è®¤äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HWorker', 'yes'] |
| | | , resize: false |
| | | , end: function () { |
| | | _obj.update({ |
| | | HPSProcName: QRName |
| | | }); |
| | | } |
| | | }) |
| | | console.log("åæ®µèµå¼" + data.HPSProcName); |
| | | console.log("è¡å·ï¼" + rowIndex); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | else if (obj.event === 'CloseManEvent') { |
| | | var _obj = obj; |
| | | switch (rowIndex) { |
| | | case "0": |
| | | |
| | | break; |
| | | case "1": |
| | | |
| | | break; |
| | | case "2": |
| | | |
| | | break; |
| | | case "3": |
| | | |
| | | break; |
| | | case "4": |
| | | |
| | | break; |
| | | case "5": |
| | | |
| | | break; |
| | | case "6": |
| | | |
| | | break; |
| | | case "7": |
| | | |
| | | break; |
| | | case "8": |
| | | |
| | | break; |
| | | case "9": |
| | | |
| | | break; |
| | | case "10": |
| | | |
| | | break; |
| | | case "11": |
| | | |
| | | break; |
| | | case "12": |
| | | |
| | | break; |
| | | case "13": |
| | | |
| | | break; |
| | | case "14": |
| | | |
| | | break; |
| | | case "15": |
| | | |
| | | break; |
| | | case "16": |
| | | |
| | | break; |
| | | } |
| | | } |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | set_GridCellCheck(obj); //è¡å
å¿«æ·é®çé |
| | | }); |
| | | function RoadBillMain(hID)//å 载表头 |
| | | { |
| | | alert(hID); |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_MouldMaintainBill/Sc_MouldMaintainBillListCheckDetai", |
| | | type: "GET", |
| | | data: { |
| | | "HID": hID |
| | | |
| | | //ä¿å
»è®¡åå
ç |
| | | form.on('submit(HPlanInterpList)', function () {//éæ©åä½ |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ä¿å
»è®¡åå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data.h_v_Sc_MouldMaintainBillList[0]; |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": data.åæ®å· |
| | | , "HDate": data.æ¥æ |
| | | , "HInnerBillNo": data.å
é¨åæ®å· |
| | | , "HBeginDate": data.ä¿å
»å¼å§æ¥æ |
| | | , "HEndDate": data.ä¿å
»ç»ææ¥æ |
| | | , "HExplanation": data.æè¦ |
| | | , "HRemark": data.夿³¨ |
| | | , "HPlanNo": data.ä¿å
»è®¡åç¼å· |
| | | , "HPlanInterID": data.ä¿å
»è®¡åå
ç |
| | | , "HMouldID": data.HMouldID |
| | | end: function () { |
| | | |
| | | }); |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //äº§åæ¨¡å
· |
| | | form.on('submit(HMouldList)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'äº§åæ¨¡å
·å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldInformation.html', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | $("#HMouldName").val(checkStatus.data[0].HName); |
| | | $("#HMouldID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | | var year = date.getFullYear(); |
| | | var shijian = year + "-" + month + "-" + day; |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3807' }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(shijian); |
| | | $("#HBeginDate").val(shijian); |
| | | $("#HEndDate").val(shijian); |
| | | $("#HInterID").val(0); |
| | | } |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(hID); |
| | | /* RoadBillSub(linterid);*/ |
| | | } |
| | | |
| | | //éæ©äº§åå¼¹çª |
| | | form.on('submit(HMateria-BT)', function () {//产å |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'ç©æ' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_MaterialList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | //éæ©å·¥åº |
| | | form.on('submit(HProc-BT)', function () {//éæ©å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'å·¥åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_ProcList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //éæ©é¨é¨ |
| | | form.on('submit(HDepart-BT)', function () {//éæ©é¨é¨ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'é¨é¨å表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | //, maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , resize: false |
| | | , cancel: function (index, layero) { |
| | | } |
| | | }) |
| | | }); |
| | | //éæ©åä½ |
| | | form.on('submit(HUnitID-BT)', function () {//éæ©åä½ |
| | | layer.open({ |
| | |
| | | }) |
| | | }); |
| | | |
| | | form.on('submit(Exit)', function (data) {// |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | //è¡¨æ ¼è¡å
äºä»¶å¿«æ·é®çé |
| | | function set_GridCellCheck(obj) { |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | if (event.key == "F7") { |
| | | if (obj.event === 'HMaterCode') //ç©æä¿¡æ¯ |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'ç©æå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/PartInformation.html', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HMaterID: checkStatus.data[0].HItemID, |
| | | HMaterCode: checkStatus.data[0].HNumber, |
| | | HMaterName: checkStatus.data[0].HName, |
| | | HMaterSpec: checkStatus.data[0].HModel, |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //éæ©è´£ä»»äºº |
| | | form.on('submit(HEmployeeID-BT)', function () {//éæ©è´£ä»»äºº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: 'èåå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_EmployeeList.html?Type=HKeeper', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | if (obj.event === 'HUnitCode') //åä½ä¿¡æ¯ |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'åä½å表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UnitInformation.html', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HUnitID: checkStatus.data[0].HItemID, |
| | | HUnitCode: checkStatus.data[0].HNumber, |
| | | HUnitName: checkStatus.data[0].HName |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | if (obj.event === 'HSourceCode') //èµæºä¿¡æ¯ |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'èµæºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/SourceInformation.html', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HSourceID: checkStatus.data[0].HItemID, |
| | | HSourceCode: checkStatus.data[0].HNumber, |
| | | HSourceName: checkStatus.data[0].HName |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | if (obj.event === 'HWorkerCode') //人åä¿¡æ¯ |
| | | { |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'èµæºå表', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/UserInformation.html', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | HWorkerid: checkStatus.data[0].HItemID, |
| | | HWorkerCode: checkStatus.data[0].HNumber, |
| | | HWorkerName: checkStatus.data[0].HName |
| | | }); |
| | | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | obj.event = ""; |
| | | return false; |
| | | |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | //éæ©è´£ä»»å·¥åº |
| | | form.on('submit(HZRProcID-BT)', function () {//éæ©è´£ä»»å·¥åº |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['80%', '80%'] |
| | | , title: '责任工åºå表' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_ProcList.html?Type=HZR', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | |
| | | |
| | | form.on('submit(Cancel)', function () { |
| | | //sessionStorage["SourceFlag"] = false; |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | |
| | | |
| | | //ä¿å |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | var sMainStr = JSON.stringify(data.field); |
| | |
| | | }); |
| | | } |
| | | else { |
| | | |
| | | f_alert(data.Message); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | |
| | | f_alert("é误:" + err); |
| | | console.log("Reason" + sMainStr); |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | function f_alert(sMsg) { |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | |
| | | //çå¬æäº¤ |
| | | form.verify({ |
| | | numberOrEmpty: function (value, item) { |
| | | // if (value != '') { |
| | | if (!/^\d+$/.test(value)) { |
| | | return 'ä¸è½ä¸ºç©ºææ°åæè
0'; |
| | | } |
| | | //} |
| | | } |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) {// |
| | | var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | | |
| | | |
| | | }); |
| | | //å®ä¹å
¨å±åé |
| | | var HReasonName, ReasonID, EmpName, SQProcName, |
| | | ProcID, ZRProcName, QRName |
| | | ; |
| | | function GetHReasonValue(obj) //è¿åä¸è¯åå |
| | | { |
| | | HReasonName = obj[0].HName; |
| | | ReasonID = obj[0].HItemID; |
| | | } |
| | | //è¿åç©æ |
| | | function GetHMaterNameValue(obj) { //è¿åç©æ |
| | | $("#HMater").val(obj[0].HName); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | $("#HMaterNumber").val(obj[0].HNumber); |
| | | } |
| | | //è¿åå·¥åº |
| | | function GetHProcValue(obj) { //è¿åå·¥åº |
| | | $("#HProcName").val(obj[0].å·¥åº); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | $("#HProcNumber").val(obj[0].å·¥åºä»£ç ); |
| | | } |
| | | function GetHDeptNameValue(obj) { //è¿åé¨é¨ |
| | | $("#HDepName").val(obj[0].HName); |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | $("#HDeptNumber").val(obj[0].HNumber); |
| | | } |
| | | //è¿ååä½ |
| | | function GetHUnitNameValue(obj) { |
| | | $("#HUName").val(obj[0].HName); |
| | | $("#HUnitID").val(obj[0].HItemID); |
| | | $("#HUnitNumber").val(obj[0].HNumber); |
| | | } |
| | | //#endregion |
| | | |
| | | function GetHKeeperValue(obj) { //è¿å责任人 |
| | | EmpName = obj[0].HName; |
| | | // $("#HEmpName").val(obj[0].HName); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | //function GetHProcValue(obj) { //è¿åç³è¯·å·¥åº |
| | | // SQProcName = obj[0].å·¥åº; |
| | | // ProcID = obj[0].HItemID; |
| | | // //$("#HSQProcName").val(obj[0].å·¥åº); |
| | | // //$("#HProcID").val(obj[0].HItemID); |
| | | //} |
| | | function GetHZRValue(obj) { //è¿åè´£ä»»å·¥åº |
| | | ZRProcName = obj[0].å·¥åº; |
| | | //$("#HZRProcName").val(obj[0].å·¥åº); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | //HWorker |
| | | function GetHWorkerValue(obj) { //è¿åä¸è¯ç¡®è®¤äºº |
| | | QRName = obj[0].HName; |
| | | //$("#HQRName").val(obj[0].HName); |
| | | //$("#HItemID").val(obj[0].HItemID); |
| | | } |
| | | function AllowLoadData(sSubStr) { //é空éªè¯ |
| | | //if ($("#HSourceBillNo").val() == '') { |
| | | // layer.msg("请å
æ«æºå!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if ($("#HDeptName").val() == '') { |
| | | layer.msg("é¨é¨æ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | //åå§å表åæä»¶ |
| | | function set_InitFrom() |
| | | { |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HBeginDate' |
| | | }); |
| | | laydate.render({ |
| | | elem: '#HEndDate' |
| | | }); |
| | | } |
| | | if ($("#HSecManager").val() == '') { |
| | | layer.msg("éªæ¶äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() |
| | | { |
| | | Table1(); //ä¿å
»é¡¹å表 |
| | | Table2(); //é
件项å表 |
| | | |
| | | } |
| | | if ($("#HKeeper").val() == '') { |
| | | layer.msg("ä¿ç®¡äººæ²¡æéæ©", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //if ($("#HWHNAME").val() == '') { |
| | | // layer.msg("ä»åºæ²¡æéæ©!", { icon: 5 }); |
| | | // return false; |
| | | //} |
| | | if ($("#HBillNo").val() == '') { |
| | | layer.msg("é误çåæ®å·", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if ($("#HInterID").val() == '') { |
| | | layer.msg("é误çå
ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (typeof (sSubStr) == "undefined") { |
| | | layer.msg("没æç©ææç»è®°å½", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (!typeof (sSubStr) == "undefined") { |
| | | //for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½å¤§äºåºæ¶æ°é |
| | | // if (parseFloat(sSubStr[i].HQtyMust) > 0) { |
| | | // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) |
| | | // { |
| | | // layer.msg("æ°éä¸è½å¤§äºåºæ¶æ°é", { icon: 5, btn: ['ç¡®å®'], time: 100000, offset: 't' }); |
| | | // return false; |
| | | // } |
| | | // } |
| | | //} |
| | | for (var i = 0; i <= sSubStr.length - 1; i++) { //夿æ«ç æ°éä¸è½ä¸º0 |
| | | if (parseFloat(sSubStr[i].HQty) > 0) { |
| | | s = 1; |
| | | |
| | | //åå§åä¿å
»é¡¹å表 |
| | | function Table1() |
| | | { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HMaintainItemID', title: 'ä¿å
»é¡¹ç®ID', edit: 'text', event: "" } |
| | | , { field: 'HMaintainNumber', title: 'ä¿å
»é¡¹ç®ä»£ç ', edit: 'text', event: "" } |
| | | , { field: 'HMaintainItem', title: 'ä¿å
»é¡¹ç®', edit: 'text', event: "" } |
| | | , { field: 'HMaintainPart', title: 'ä¿å
»é¨ä½', edit: 'text', event: "" } |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text', event: "" } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text' } |
| | | , { field: 'HManagerNumber', title: 'è´è´£äººä»£ç ', edit: 'text' } |
| | | , { field: 'HManagerName', title: 'è´è´£äºº', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | ]; |
| | | option = { |
| | | id: 'mainTable' |
| | | , elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //åå§åé
件项å表 |
| | | function Table2() { |
| | | //表头 |
| | | columns = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HMaintainItemID', title: 'ä¿å
»é¡¹ç®ID', edit: 'text', event: "" } |
| | | , { field: 'HMaintainNumber', title: 'ä¿å
»é¡¹ç®ä»£ç ', edit: 'text', event: "" } |
| | | , { field: 'HMaintainItem', title: 'ä¿å
»é¡¹ç®', edit: 'text', event: "" } |
| | | , { field: 'HMaintainPart', title: 'ä¿å
»é¨ä½', edit: 'text', event: "" } |
| | | , { field: 'HClaim', title: 'å
·ä½è¦æ±', edit: 'text', event: "" } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', edit: 'text' } |
| | | , { field: 'HManagerNumber', title: 'è´è´£äººä»£ç ', edit: 'text' } |
| | | , { field: 'HManagerName', title: 'è´è´£äºº', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | ]; |
| | | option2 = { |
| | | id: 'mainTable1' |
| | | , elem: '#mainTable1' |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , cols: [columns] |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | //æ æºåæ°å¢ |
| | | function set_AddFNew() |
| | | { |
| | | //è·åæå¤§åæ®å· |
| | | //get_MAXNum(); |
| | | option.data = [TabRow]; |
| | | option2.data = [TabRow1]; |
| | | table.render(option); |
| | | table.render(option2); |
| | | } |
| | | |
| | | //ç¼è¾ |
| | | function set_EditFromGrid() |
| | | { |
| | | set_EditForm(linterid); //ç¼è¾è·å表头 |
| | | set_EditGrid(linterid); //ç¼è¾è·åè¡¨ä½ |
| | | option.data = [TabRow]; |
| | | table.render(option); |
| | | option2.data = [TabRow1]; |
| | | table.render(option2); |
| | | } |
| | | |
| | | //è·åæå¤§åæ®å·åé»è®¤å¼èµå¼ |
| | | function get_MAXNum() { |
| | | //è·åæå¤§åæ®å· new |
| | | $("#HInterID").val("0"); |
| | | $("#HBillNo").val(""); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | data: { "HBillType": '3807' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(0); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HBeginDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Pub_Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ç¼è¾è·å表头 |
| | | function set_EditForm(linterid) { |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Sc_MouldMaintainBill/Sc_MouldMaintainBillListCheckDetai", |
| | | type: "GET", |
| | | data: { |
| | | "HID": linterid |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data.h_v_Sc_MouldMaintainBillList[0]; |
| | | form.val("component-form-group", { |
| | | "HBillNo": data.åæ®å· |
| | | , "HDate": formatDate(data.æ¥æ) |
| | | , "HInnerBillNo": data.å
é¨åæ®å· |
| | | , "HBeginDate": formatDate(data.ä¿å
»å¼å§æ¥æ) |
| | | , "HEndDate": formatDate(data.ä¿å
»ç»ææ¥æ) |
| | | , "HExplanation": data.æè¦ |
| | | , "HRemark": data.夿³¨ |
| | | , "HPlanNo": data.ä¿å
»è®¡åç¼å· |
| | | , "HPlanInterID": data.ä¿å
»è®¡åå
ç |
| | | , "HMouldID": data.HMouldID |
| | | |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // ç¼è¾è·åè¡¨å¤´æ¶æ¶é´æ ¼å¼ç«æ£æ¹å¼ |
| | | function formatDate(date) { |
| | | var d = new Date(date), |
| | | month = '' + (d.getMonth() + 1), |
| | | day = '' + d.getDate(), |
| | | year = d.getFullYear(); |
| | | |
| | | if (month.length < 2) month = '0' + month; |
| | | if (day.length < 2) day = '0' + day; |
| | | |
| | | return [year, month, day].join('-'); |
| | | } |
| | | |
| | | // ç¼è¾è·åè¡¨ä½ |
| | | function set_EditGrid(linterid) { |
| | | $("#HInterID").val(linterid);//ä¿®æ¹æ¶ä¸»è¡¨ID |
| | | //ç¼è¾å è½½æ°æ® |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sc_MouldMaintainBill/Sc_MouldMaintainBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "HInterID": linterid }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | option.data = result.data; |
| | | table.render(option); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index0); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine(NewRow) { |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | } |
| | | |
| | | //å¤å¶ä¸è¡ |
| | | function btnCopyLine(data) { |
| | | var copydata = JSON.stringify(data); |
| | | if (data.length <= 0) { |
| | | layer.msg("è¯·éæ©éè¦å¤å¶çä¸è¡ï¼"); |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("产åå
¥åºè®°å½æªæ«ç ", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | else if (data.length > 1) { |
| | | layer.msg("åªè½éæ©å¤å¶ä¸è¡ï¼"); |
| | | } |
| | | else { |
| | | var copydata2 = copydata.substring(1, copydata.length);//å»é¤é¦è¡å符'[' |
| | | var copyrow = copydata2.substring(0, copydata2.length - 1);//å»é¤æ«å°¾å符']' |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | } |
| | | } |
| | | else { |
| | | return true; |
| | | |
| | | //è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡ä¹', function (index) { |
| | | if (rowIndex === '0') { |
| | | layer.msg('é¦è¡æ æ³å é¤ï¼ï¼ï¼'); |
| | | } else { |
| | | obj.del(); |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.reload(option); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }</script> |
| | | |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |